﻿#include "TestCommand.h"

#ifdef _DEBUG
#include "../../../Memory/GameData.h"
#include <fast_io/fast_io_device.h>
#include <string_view>
#include "../../../Memory/Hook.h"

bool TestCommand_onExecute(const fast_io::vector<std::u8string>& args) {
	const auto localplayer = GameData::getLocalPlayer();
	C_GuiData::displayClientMessageC(fast_io::mnp::pointervw(&localplayer->canFly));

	return true;
}

ICommand TestCommand{
	u8"test",
	u8".test/testcommand ...",
	{u8"command for testing", u8"用来测试的命令", u8"用來測試的命令", u8"テストに使用するコマンド"},
	{u8"testcommand"},
	fast_io::vector<aliasList_struct>{},  // If empty must use fast_io::vector<aliasList_struct>{}
	nullptr,
	&TestCommand_onExecute};


#endif  // _DEBUG
